package com.cardlan.twoshowinonescreen;


public class DESTwo {


    /**
     * This method is used to encrypt the card{@link CardLanDes#callDesCard(byte[], byte[])},
     * Leave it to the underlying hardware to process and get the results.
     * @param data card sn.
     * @param keyBytes encrypted card sn.
     * @return byte[]
     */
    public static byte[] encrypt(byte[] data, byte[] keyBytes) {
        try {
            return new CardLanStandardBus().callDesCard(keyBytes, data);
        } catch (Throwable e) {
            Logs.d(e.getMessage());
            e.printStackTrace();
        }
        return null;
    }


}